<?php
/**
 * Product:     One-Page Checkout Booster
 * Package:     Gold_Gonepage_1.1.1_94708
 * Purchase ID: 9CBm2i1g9YwZZ6QK4IjUneSwxlnJsImwioL1MUWAXd
 * Generated:   2011-07-15 10:07:59
 * File path:   app/design/frontend/base/default/template/gonepage/compact.phtml
 * Copyright:   (c) 2011 GOLD, Inc.
 */
?>
<?php if ($this->getQuote()->getItemsCount()):?>
<div class="cart">
    <?php $methods = $this->getMethods('top_methods'); ?>
    <div class="page-title title-buttons">
        <?php if ($this->helper('gonepage')->isShowCheckoutTitle()):?>
            <h1><?php echo $this->__($this->helper('gonepage')->getCheckoutTitle()) ?></h1>
        <?php endif; ?>
        <?php if(!empty($methods)):?>
        <ul class="checkout-types">
            <?php foreach ($methods as $method): ?>
                <?php if ($methodHtml = $this->getMethodHtml($method)): ?>
                <li><?php echo $methodHtml; ?></li>
                <?php endif; ?>
            <?php endforeach; ?>
        </ul>
        <?php endif; ?> 
    </div>
</div>
<script type="text/javascript">countryRegions = <?php echo $this->helper('directory')->getRegionJson() ?></script>
<script type="text/javascript">
//<![CDATA[

    var gonepage = new Gonepage('co-checkout-form', {
            ajaxUpdateUrl : '<?php echo $this->getUrl('gonepage/checkout/updateSteps', array('_secure'=>true)) ?>',
            failureUrl : '<?php echo $this->getUrl('checkout/cart') ?>'  
    });
    
    gMessages = new Step('messages', 'checkout-messages', gonepage, {}, {
            doCheckErrors : false,
            isLoadWaiting : false,
            isUpdateOnReload : false    
        } );
    gonepage.setStep('messages', gMessages);
//]]>
</script>  
<?php $i = 1; ?>
<form id="co-checkout-form" action="">
    <?php if ($this->helper('gonepage')->isShowCartInCheckout()): ?>
    <div id="opc-messages">
        <div id="checkout-messages">
            <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
        </div>
    </div>
    <?php endif;?> 
<ol class="opc" id="checkoutSteps">
    <li id="left_collumn">
     <ol class="opc">
    <li id="opc-billing" class="section allow active">
        <div class="step-title">
            <span class="number"><?php echo $i++;?></span>
            <h2><?php echo $this->__('Billing Information') ?></h2>
        </div>
        <div id="checkout-step-billing" class="step a-item">
            <?php echo $this->getChildHtml('billing') ?>
        </div>
    </li>
    <?php if ($this->getChild('shipping') && $this->getChild('shipping')->isShow()): ?>
    <li id="checkout-step-shipping" class="section allow active">
        <div class="step-title">
            <h2><?php echo $this->__('Shipping Information') ?></h2>
        </div>
        <div id="checkout-step-shipping2" class="step a-item">
            <?php echo $this->getChildHtml('shipping') ?>
        </div>
    </li>
    <?php endif;?>
    </ol>
    </li>
    <li id="center_column">
        <ol class="opc">
    <?php if ($this->getChild('shipping_method') && $this->getChild('shipping_method')->isShow()): ?>
    <li id="opc-shipping_method" class="section allow active">
        <div class="step-title">
            <span class="number"><?php echo $i++;?></span>
            <h2><?php echo $this->__('Shipping Method') ?></h2>
        </div>
        <div id="checkout-step-shipping_method" class="step a-item">
            <?php echo $this->getChildHtml('shipping_method') ?>
        </div>
    </li>
    <?php endif;?>
    <?php if ($this->getChild('deliverydate') && $this->getChild('deliverydate')->isShow()): ?>
    <li id="opc-deliverydate" class="section allow active">
        <div class="step-title">
            <span class="number"><?php echo $i++;?></span>
            <h2><?php echo Mage::helper('adjdeliverydate')->__('Delivery Date') ?></h2>
        </div>
        <div id="checkout-step-deliverydate" class="step a-item">
            <?php echo $this->getChildHtml('deliverydate') ?>
        </div>
    </li>
    <?php endif;?>
    <?php if ($this->getChild('payment') && $this->getChild('payment')->isShow()): ?>
    <li id="opc-payment" class="section allow active">
        <div class="step-title">
            <span class="number"><?php echo $i++;?></span>
            <h2><?php echo $this->__('Payment Information') ?></h2>
        </div>
        <div id="checkout-step-payment" class="step a-item">
            <?php echo $this->getChildHtml('payment') ?>
        </div>
    </li>
    <?php endif;?>
        </ol>
    </li>
    <li id="right_collumn">
        <ol class="opc">
    <li id="opc-review" class="section allow active">
        <div class="step-title">            
            <h2><?php echo $this->__('Order Review') ?></h2>
        </div>
        <div id="checkout-step-review" class="step a-item">
            <?php echo $this->getChildHtml('review') ?>
        </div>
    </li>
    <?php if ($this->helper('gonepage')->isShowCartInCheckout() || $this->helper('gonepage')->isShowCheckoutInCart()): ?>
    <li id="opc-coupon" class="section allow active">
        <div id="checkout-step-coupon" class="step a-item">
            <?php echo $this->getChildHtml('coupon') ?> 
        </div>
    </li>
    <?php endif; ?>
    <?php if ($this->getChild('ggiftwrap') && $this->getChild('ggiftwrap')->isShow()): ?>
    <li id="opc-ggiftwrap" class="section allow active">
        <div id="checkout-step-ggiftwrap" class="step a-item">
            <?php echo $this->getChildHtml('ggiftwrap') ?>
        </div>
    </li>
    <?php endif;?>
    <?php if ($this->getChild('agreements')->getAgreements()): ?>
    <li id="opc-agreements" class="section allow active">
        <div id="checkout-step-agreements" class="checkout-agreements step a-item">
            <?php echo $this->getChildHtml('agreements'); ?> 
        </div>
    </li>
    <?php endif;?>
    <?php if ($this->getChild('giftmessage') && $this->getChild('giftmessage')->isShow()): ?>
    <li id="opc-giftmessage" class="section allow active">
        <div id="checkout-step-giftmessage" class="step a-item">
            <?php echo $this->getChildHtml('giftmessage') ?>
        </div>
    </li>
    <?php endif;?>
    <?php if ($this->getChild('newsletter')->isShow()): ?>
    <li id="opc-newsletter" class="section allow active compact-newsletter">
        <?php echo $this->getChildHtml('newsletter') ?>
    </li>
    <?php endif; ?>
        </ol>
    <div class="buttons-set" id="checkout-buttons-container">
        <?php if ($this->helper('gonepage')->isShowCheckoutInCart()): ?> 
            <p class="f-left"><?php echo $this->__('Forgot an Item?') ?> <a href="" onclick="Effect.ScrollTo('shopping-cart-table');return false;"><?php echo $this->__('Edit Your Cart') ?></a></p>
        <?php elseif ($this->helper('gonepage')->isShowCheckoutOutsideCart()): ?> 
            <p class="f-left"><?php echo $this->__('Forgot an Item?') ?> <a href="<?php echo $this->getUrl('checkout/cart') ?>"><?php echo $this->__('Edit Your Cart') ?></a></p>
        <?php endif; ?> 
        <button type="button" title="<?php echo $this->__('Place Order') ?>" class="button btn-checkout" onclick="review.save();"><span><span><?php echo $this->__('Place Order') ?></span></span></button>
        <span class="please-wait" id="checkout-please-wait" style="display:none;">
            <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Submitting order information...') ?>" title="<?php echo $this->__('Submitting order information...') ?>" class="v-middle" /> <?php echo $this->__('Submitting order information...') ?>
        </span>

    </div>
    </li>
</ol>

</form>
    <?php if ($this->helper('gonepage')->isShowCheckoutInCart()): ?>
    <div class="cart">
        <div class="cart-collaterals">
            <div class="col2-set">
                <div class="col-1">     
            <?php echo $this->getChildHtml('crosssell') ?>
            </div>
            </div>
        </div>
    </div>
    <?php endif; ?>
<?php endif; ?>